package cn.edu.scau.serviceImpl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.edu.scau.daoImpl.ModelDaoImpl;
import cn.edu.scau.entity.Model;
import cn.edu.scau.service.ModelService;

@Service("modelServiceImpl")
public class ModelServiceImpl implements ModelService {
	
	@Resource(name="modelDaoImpl")
	private ModelDaoImpl modelDaoImpl;
	@Override
	public List<Model> showAllTheModels() {
		return modelDaoImpl.findAll(Model.class);
	}
	
}
